package cn.bdqn.pn.service.base;

import cn.bdqn.pn.pojo.base.Img;

import java.sql.SQLException;

public interface ImgService {


    /**
     * 给某一项增加图片信息
     * @param img
     * @return
     * @throws SQLException
     */
    public boolean addImgInfo(Img img) throws SQLException;


    /**
     * 查询图片信息
     * @param imgTypeId
     * @param releId
     * @return
     * @throws SQLException
     */
    public Img findByImgInfo(Integer releId,Integer imgTypeId) throws SQLException;

    /**
     * 根据商品id查询图片信息
     * @param releId
     * @return
     * @throws SQLException
     */
    public Img findByReleId(Integer releId)throws SQLException;
    /**
     * 根据商品id和图片类型Id查询图片信息
     * @param releid
     * @return
     * @throws SQLException
     */
    Img findImgByReleidAndImgtypeid(Integer releid,Integer imgtypeid);
}
